package cn.shit;
class Sup {
    int x;

    public Sup(int x) {
        this.x = 6;
        System.out.println("super con");
    }

    void show() {
        System.out.println("super show()");
    }
}
public class TestSuper extends Sup{
    // 子类会覆盖父类的同名属性
    int x = 666;
    public TestSuper(int x) {
        // 第一行!
        super(3);
        System.out.println("son con");
        super.x = 9;
        System.out.println(this.x);

    }
    public void which() {
        System.out.println("which?" +x);
    }
    public static void main(String[] args) {
        new TestSuper(7).which();
    }
}
